package com.uzai.console.entity.es;

import com.uzai.common.utils.EsIndexName;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * 运营商私有黑名单
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-10-08 11:49:50
 */
@Document(indexName = EsIndexName.UZAI_WECHAT_BLACKLIST_PRV, shards = 3, replicas = 2)
public class WechatBlacklistPrv implements Serializable {

	private static final long serialVersionUID = 4617990317696345094L;

	/**
	 * id为merId_wxid
	 */
	@ApiModelProperty("主键ID(merId_wxid)")
	@Id
	@Field(type = FieldType.Keyword)
	private String id;

	/**
	 * 运营商Id
	 */
	@Field(type = FieldType.Long)
	private Long merId;

	/**
	 * 设备唯一Id
	 */
	@Field(type = FieldType.Long)
	private Long deviceUniqueId;

	/**
	 * 设备类型
	 */
	@Field(type = FieldType.Keyword)
	private String deviceType;

	/**
	 * 微信Id
	 */
	@Field(type = FieldType.Keyword)
	private String wxid;

	/**
	 * 微信昵称
	 */
	@Field(type = FieldType.Text)
	private String nickName;

	/**
	 * 微信头像地址
	 */
	@Field(type = FieldType.Keyword)
	private String headImg;

	/**
	 * 黑名单类型(0常规 1刷单 2同行 3店淘 4敲诈 5撸狗)
	 */
	@Field(type = FieldType.Integer)
	private Integer type;

	/**
	 * 备注-加黑原因
	 */
	@Field(type = FieldType.Text)
	private String remark;

	/**
	 * 创建时间
	 */
	@Field(type = FieldType.Integer)
	private int createTime;

	/**
	 * 修改时间
	 */
	@Field(type = FieldType.Integer)
	private int updateTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Long getMerId() {
		return merId;
	}

	public void setMerId(Long merId) {
		this.merId = merId;
	}

	public Long getDeviceUniqueId() {
		return deviceUniqueId;
	}

	public void setDeviceUniqueId(Long deviceUniqueId) {
		this.deviceUniqueId = deviceUniqueId;
	}

	public String getWxid() {
		return wxid;
	}

	public void setWxid(String wxid) {
		this.wxid = wxid;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}

	public int getCreateTime() {
		return createTime;
	}

	public void setCreateTime(int createTime) {
		this.createTime = createTime;
	}

	public int getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(int updateTime) {
		this.updateTime = updateTime;
	}
}
